<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=0" />
	<title>-T--Mobile Đà Nẵng</title>
	<link rel="shortcut icon" type="image/x-icon" href="<?php echo get_template_directory_uri(); ?>/images/tmobile.ico" />
	<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/style.css" type="text/css" media="all" />
	<link href='http://fonts.googleapis.com/css?family=Coda' rel='stylesheet' type='text/css' />
	<link href='http://fonts.googleapis.com/css?family=Jura:400,500,600,300' rel='stylesheet' type='text/css' />

	<script src="<?php echo get_template_directory_uri(); ?>/js/jquery-1.8.0.min.js" type="text/javascript"></script>
	<script src="<?php echo get_template_directory_uri(); ?>/js/jquery.touchwipe.1.1.1.js" type="text/javascript"></script>
	<script src="<?php echo get_template_directory_uri(); ?>/js/jquery.carouFredSel-5.5.0-packed.js" type="text/javascript"></script>
	<!--[if lt IE 9]>
		<script src="js/modernizr.custom.js"></script>
	<![endif]-->
	<script src="<?php echo get_template_directory_uri(); ?>/js/functions.js" type="text/javascript"></script>
</head>
<body>
	<!-- wrapper -->
	<div class="wrapper">
		<!-- header -->
		<header class="header">
			<div class="shell">
				<div class="header-top">
					<h1 id="logo"><a href="#">458 Trưng Nữ Vương TP. Đà Nẵng</a></h1>
                                  
					<nav id="navigation">
                                           
                                             <?php   wp_nav_menu(array('Main_menu' => __('Main menu'))); ?>
					</nav>
					<div class="cl">&nbsp;</div>
				</div>
				<div class="slider">
					<div id="bg"></div>
					<div id="carousel">
						<div>
						<?php if (have_posts()) : while (have_posts()) : the_post(); 							
                                                    if(get_the_ID()==12) the_content();
                                                  
                                                    else {
                                                       ?>
						    <h5>BlackBerry </h5>
                                                        <?php
                                                    global $post;
                                                    $args = array('numberposts'=>1, 'category'=>8 ,'orderby'=>'rand');
                                                    $custom_posts = get_posts($args);
                                                    foreach($custom_posts as $post) : setup_postdata($post);
                                                        
                                                    echo '<h3>';the_title(); echo'</h3>';
                                                    echo '<br>';
                                                    $url = wp_get_attachment_url( get_post_thumbnail_id($post->ID) );
                                                    echo '<img class="img-front" src="'.$url.'" alt="" style="height: 300px; width: auto;left: 500px;margin-left:-132px;"/>';
                                                    echo'<br>';
                                                    //echo'<p>'.  the_excerpt().'</p>';
                                                    echo '<a href="';  the_permalink(); echo'" class="green-btn">View more</a>';
                                                    endforeach;
                                                    wp_reset_postdata();
                                                    ?>
                                                  <?php
                                                    }
                                                   endwhile; endif; ?>
					</div>
					<div class="pagination"></div>
				</div>
			</div>
		</header>
		<!-- end of header -->

<?php if (have_posts()) : while (have_posts()) : the_post();
 if(get_the_ID()== 12)
          break;
      else {
?>
<div class="shell">
			<!-- main -->
			<div class="main">
		<?php if(get_the_ID()!= 10)		
                echo '<section class="post">';
            ?>
               
            <?php    switch ($_GET['page_id']) {
                    case 6 : get_template_part('page', 'mobile');
                        Break;
                   case 8: get_template_part('page', 'components');
                        Break;
                    default:{
                        	the_content(); 
                    }
                }
              ?>
                                            
                                <div class="cl">&nbsp;</div>   
                                <?php if(get_the_ID()!= 10)		
                echo '</section> ';
            ?>
				          
					<section class="partners">
					
					<div id="partners-slider" style="padding-left: 80px;">
						<div class="slider-holder2">
						    <img src="<?php echo get_template_directory_uri(); ?>/images/Movistar.png"  height="52" />
						    <img src="<?php echo get_template_directory_uri(); ?>/images/Rogers.png"  height="52" />
						    <img src="<?php echo get_template_directory_uri(); ?>/images/apple.png"  height="52" />
						    <img src="<?php echo get_template_directory_uri(); ?>/images/AT&T.png"  height="52" />
						    <img src="<?php echo get_template_directory_uri(); ?>/images/Vodafone.png"  height="52" />
						    <img src="<?php echo get_template_directory_uri(); ?>/images/cable_and_wireless_logo.png"  height="52" />
						    <img src="<?php echo get_template_directory_uri(); ?>/images/maxis.png"  height="52" />
						    <img src="<?php echo get_template_directory_uri(); ?>/images/Nextel.png"  height="52" />
                                                    <img src="<?php echo get_template_directory_uri(); ?>/images/Sprintr.png"  height="52" />
                                                    <img src="<?php echo get_template_directory_uri(); ?>/images/verizon.png"  height="52" />
						</div>
					</div>
					<div class="slider-arr">
						<a class="prev-arr arr-btn" href="#"></a>
						<a class="next-arr arr-btn" href="#"></a>
					</div>
				</section>
                                <div class="socials">

					<ul>
						<li><a href="https://www.facebook.com/profile.php?id=100004660748549" class="facebook-ico">facebook-ico</a></li>
						<li><a href="#" class="twitter-ico">twitter-ico</a></li>
						<li><a href="#" class="skype-ico">skype-ico</a></li>
						<li><a href="#" class="rss-ico">rss-ico</a></li>
					</ul>
				</div>   
                            </div>
                        </div>
  <?php
 }
 
                    endwhile;
                endif;
               ?>
             


 <?php get_footer(); ?>